export {}
type ArrItem = (number | string)[]
const arr2Str = (arr: ArrItem, str: string): string => {
  return arr.join(str)
}

let str = arr2Str(['1','2',3,4], '--')
console.log(str);
